how to calculate maximum likelihood for normal distribution